package com.cos.shop.dao;

import com.cos.shop.entity.Cart;
import com.cos.shop.vo.CartVo;

import java.sql.SQLException;
import java.util.List;

/**
 * @author: COS
 * @time: 2023/5/11 11:32
 * @description:
 */
public interface CartDao {
    Cart getCartByUidAndPid(int uid, int goodsId) throws SQLException;

    int updateCart(Cart c) throws SQLException;

    int addCart(Cart cart) throws SQLException;

    List<CartVo> getCartWithProByUid(int uid) throws SQLException;

    int clearCart(int uid) throws SQLException;

    int deleteCartByUidAnsPid(int pid, int uid) throws SQLException;
}
